package online.takemehand.fx;

import javafx.application.Application;
import javafx.application.Platform;
import javafx.stage.Stage;
import javafx.stage.StageStyle;

/**
 * 模式
 */
public class Main2 extends Application {


    public static void main(String[] args) {
        launch(args);
    }
    @Override
    public void start(Stage primaryStage) throws Exception {

//        Stage stage1 = new Stage();
//        stage1.setTitle("stage 1");
//        stage1.show();
//        //透明
//        Stage stage2 = new Stage();
//        stage2.setTitle("stage 2");
//        stage2.initStyle(StageStyle.TRANSPARENT);
//        stage2.show();

//        Stage stage3= new Stage();
//        stage3.setTitle("stage 3");
//        stage3.initStyle(StageStyle.UNDECORATED);
//        stage3.show();
        //title那一行下面没有横线
        Stage stage4 = new Stage();
        stage4.setTitle("stage 4");
        stage4.initStyle(StageStyle.UNIFIED);
        stage4.show();
        //一般用作对话框
        Stage stage5 = new Stage();
        stage5.setTitle("stage 5");
        stage5.initStyle(StageStyle.UTILITY);
        stage5.show();


        //推出jvm并关闭对话框
//        Platform.exit();

    }
}
